<template>
	<view class="search-container" @click="searchHandle">
		<view class="search">
			<icon type="search" size="26" />
			<text class="text">搜索</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		methods:{
			searchHandle(){
				this.$emit('click')
			}
		}
	}
</script>

<style lang="scss">
	.search-container {
		background-color: #c00000;
		height: 50px;
		padding: 0 10px;
		display: flex;
		align-items: center;
	}

	.search {
		height: 36px;
		background-color: #ffffff;
		border-radius: 15px;
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: center;

		.text {
			font-size: 15px;
			margin-left: 5px;
		}
	}
</style>
